<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.LocaleStringResourcesControl"
    CodeBehind="LocaleStringResources.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-content.png" alt="Localization" />
        Localization
    </div>
    <div class="options">
        <asp:Button runat="server" ID="btnAddNew" CssClass="adminButtonBlue" Text="Add new"
            OnClick="btnAddNew_Click" ToolTip="Add a new resource string" />
    </div>
</div>
<table>
    <tr>
        <td class="adminTitle">
            Select language:
        </td>
        <td class="adminData">
            <asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="true" CssClass="adminInput"
                OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
</table>
<br />
<asp:GridView ID="gvLocaleStringResources" runat="server" AutoGenerateColumns="False"
    Width="100%">
    <Columns>
        <asp:BoundField DataField="LocaleStringResourceID" HeaderText="LocaleStringResourceID"
            Visible="False"></asp:BoundField>
        <asp:TemplateField HeaderText="Language" ItemStyle-Width="20%">
            <ItemTemplate>
                <%#((Language)Eval("Language")).Name%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="ResourceName" HeaderText="Resource name" ItemStyle-Width="30%">
        </asp:BoundField>
        <asp:BoundField DataField="ResourceValue" HeaderText="Resource value" ItemStyle-Width="40%">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="LocaleStringResourceDetails.aspx?LocaleStringResourceID=<%#Eval("LocaleStringResourceID")%>"
                    title="Edit resource string">Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
